//数据格式注册——百人妞妞
module RegDataBrnn {
    export let LEN_33 = 33
    export let LEN_32 = 32
    export let LEN_MACHINE_ID = 33
    export let LEN_MOBILE_PHONE = 12
    export let AREA_COUNT = 4

    //类型掩码
    //#define SMT_CHAT					0x0001								//聊天消息 1
    //#define SMT_EJECT					0x0002								//弹出消息 2
    //#define SMT_GLOBAL					0x0004								//全局消息 4
    //#define SMT_PROMPT					0x0008								//提示消息 8
    //#define SMT_TABLE_ROLL				0x0010								//滚动消息 16
    //
    //
    ////控制掩码
    //#define SMT_CLOSE_ROOM				0x0100								//关闭房间 256
    //#define SMT_CLOSE_GAME				0x0200								//关闭游戏 512
    //#define SMT_CLOSE_LINK				0x0501								//中断连接 1281
    //BYTE,CHAR 1字节  TCHAR是char数组形式 如果是TCHAR是中文数据则用CHINESE
    //WORD 2字节
    //DWORD int LONG 4字节
    //SCORE 8字节

    //请求坐下
    export let CMD_GP_UserQuickSitdown = {
        wMainCmdID: 3,
        wSubCmdID: 3,
        nLenght: 70,
        data: [
            ["wTableID", "WORD"],
            ["wChairID", "WORD"],
            ["szInsurePass", "TCHAR", 33],
        ]
    }

    //开始游戏
    export let CMD_GP_StartGame = {
        wMainCmdID: 100,
        wSubCmdID: 1,
        nLenght: 9,
        data: [
            ["wVisit", "BYTE"],
            ["wVersion", "DWORD"],
            ["wGameVersion", "DWORD"]
        ]
    }
    //游戏里面取款操作
    export let CMD_GP_TakeScoreRequest = {
        wMainCmdID: 5, //主消息号
        wSubCmdID: 3,  //子消息号
        nLenght: 42,  //包体长度 = LEN_MD5 + LEN_ACCOUNTS + LEN_MACHINE_ID + LEN_MOBILE_PHONE+BYTE + DWORD + WORD   如果该字节没有长度要求则不填
        data: [
            ["cbActivityGame", "BYTE"],
            ["lTakeScore", "SCORE"],
            ["szInsurePass", "CHARS", LEN_33],
        ]
    }
    //游戏里查询余银行资料
    export let CMD_GP_QueryInsureInfo = {
        wMainCmdID: 5,
        wSubCmdID: 1,
        nLenght: 1,
        data: [
            ["cbActivityGame", "BYTE"]
        ]
    }
    //用户下注
    export let CMD_GP_PlaceJetton = {
        wMainCmdID: 200,
        wSubCmdID: 1,
        nLenght: 9,
        data: [
            ["cbJettonArea", "BYTE"],    //筹码区域
            ["lJettonScore", "DWORD"],   //加注数量
        ]

    }
    //申请庄家
    export let CMD_GP_ApplyBanker = {
        wMainCmdID: 200,
        wSubCmdID: 2,
        nLenght: 0,
        data: [

        ]

    }
    //退出房间
    export let CMD_GP_UserLeave = {
        wMainCmdID: 3,
        wSubCmdID: 14,
        nLenght: 0,
        data: [

        ]

    }
    //取消申请
    export let CMD_GP_CancelBanker = {
        wMainCmdID: 200,
        wSubCmdID: 3,
        nLenght: 32,
        data: [
        ]

    }
    //继续发牌
    export let CMD_GP_ContinueCard = {
        wMainCmdID: 9,
        wSubCmdID: 4,
        nLenght: 0,
        data: [

        ]

    }
    //管理员命令
    export let CMD_GP_AmdinCommand = {
        wMainCmdID: 9,
        wSubCmdID: 5,
        nLenght: 0,
        data: [

        ]

    }
    //获取账号
    export let CMD_GP_GetAccount = {
        wMainCmdID: 9,
        wSubCmdID: 6,
        nLenght: 8,
        data: [
            ["m_UserID", "DWORD"],  //玩家ID
            ["m_UserCount", "DWORD"],   //玩家数量
        ]

    }
    //更新账号
    export let CMD_GP_CheakAccount = {
        wMainCmdID: 9,
        wSubCmdID: 7,
        nLenght: 32,
        data: [
            ["dwUserAccount", "CHINESE", LEN_32],  //玩家账号
        ]

    }
    //输赢记录
    export let CMD_GP_RequestRecord = {
        wMainCmdID: 9,
        wSubCmdID: 8,
        nLenght: 0,
        data: [

        ]

    }
    //机器人下注
    export let CMD_GP_RobotJetton = {
        wMainCmdID: 9,
        wSubCmdID: 9,
        nLenght: 0,
        data: [

        ]

    }
    //陪玩账号命令
    export let CMD_GP_WinnerCommand = {
        wMainCmdID: 9,
        wSubCmdID: 10,
        nLenght: 5,
        data: [
            ["cbType", "BYTE"],     //主类型 1-庄通杀 2-庄小杀 3-庄小赔 4-庄通赔 5-玩家大赢 6-玩家小赢 7-玩家小输 8-玩家大输
            ["dwGameID", "DWORD"],  //玩家游戏ID
        ]

    }
    //获取申请上庄列表
    export let CMD_GP_GetApply = {
        wMainCmdID: 9,
        wSubCmdID: 20,
        nLenght: 0,
        data: [

        ]

    }
    //押注已满，提前结束
    export let CMD_GP_FullJetton = {
        wMainCmdID: 9,
        wSubCmdID: 21,
        nLenght: 32,
        data: [
            ["m_szNickName", "CHINESE", LEN_32],
        ]

    }

    //查询游戏记录
    export let CMD_GP_SendRecode = {
        wMainCmdID: 9,
        wSubCmdID: 108,
        nLenght: 0,
        data: [

        ]

    }

    //查询用户信息
    export let CMD_GP_GetOtherUserInfo = {
        wMainCmdID: 9,
        wSubCmdID: 503,
        nLenght: 0,
        data: [

        ]

    }
    //验证银行密码
    export let CMD_GP_VerifyInsurePass = {
        wMainCmdID: 9,
        wSubCmdID: 407,
        nLenght: 33,
        data: [
            ["szPassword", "TCHAR", 33],
        ]

    }

    //查询用户游戏积分
    export let CMD_GP_QueryGameSocre = {
        wMainCmdID: 9,
        wSubCmdID: 501,
        nLenght: 0,
        data: [

        ]

    }

    //游戏空闲
    export let gameFree = [
        ["cbTimeLeave", "BYTE"],        //剩余时间
        ["lUserMaxScore", "DLONG"],        //玩家金币
        ["wBankerUser", "WORD"],        //当前庄家
        ["cbBankerTime", "WORD"],        //庄家局数
        ["lBankerWinScore", "DLONG"],        //庄家成绩
        ["lBankerScore", "DLONG"],        //庄家分数
        ["nEndGameMul", "DWORD"],        //提前开牌百分比
        ["bEnableSysBanker", "BOOL"],        //系统做庄
        ["lApplyBankerCondition", "DLONG"],        //申请条件
        ["lAreaLimitScore", "DLONG"],        //区域限制
        ["szGameRoomName", "TCHARS", 32],        //房间名称
    ];
    //游戏下注
    export let gamePlay = [
        ["lCellScore", "DLONG[]", AREA_COUNT + 1],        //全体总注
        ["lUserJettonScore", "DLONG[]", AREA_COUNT + 1],        //个人总注
        ["lUserMaxScore", "DLONG"],        //最大下注
        ["lApplyBankerCondition", "DLONG"],        //申请条件
        ["lAreaLimitScore", "DLONG"],        //区域限制
        ["cbTableCardArray", "BYTE[][]", 5, 5],        //桌面扑克
        ["wBankerUser", "WORD"],        //当前庄家
        ["cbBankerTime", "WORD"],        //庄家局数
        ["lBankerWinScore", "DLONG"],        //庄家赢分
        ["lBankerScore", "DLONG"],        //庄家分数
        ["nEndGameMul", "DWORD"],        //提前开牌百分比
        ["bEnableSysBanker", "BOOL"],        //系统做庄
        ["lEndBankerScore", "DLONG"],        //庄家成绩
        ["lEndUserScore", "DLONG"],        //玩家成绩
        ["lEndUserReturnScore", "DLONG"],        //返回积分
        ["lEndRevenue", "DLONG"],        //游戏税收
        ["cbTimeLeave", "BYTE"],        //剩余时间
        ["cbGameStatus", "BYTE"],        //游戏状态
        ["szGameRoomName", "TCHARS", 32],        //房间名称
        ["bGenreEducate", "BOOL"],        //练习模式
    ]



    export let MainCMD_MsgId = {
        1: {
            //登陆成功
            100: [
                ["dwUserRight", "DWORD"],        //用户权限
                ["dwMasterRight", "DWORD"],       //管理权限
            ],
            //登陆失败
            101: [
                ["lErrorCode", "DWORD"],        //错误代码
                ["szDescribeString", "TCHARS", 128],       //描述
            ],
            //登陆完成
            102: [


            ],
            //登陆游戏时发现在其他房间
            103: [
                ["wServerID", "WORD"],        //其他游戏房间的serverID
            ],
            //重选服务器-选桌类型
            104: [

            ],
            //升级提示
            200: [
                ["cbMustUpdatePlaza", "BYTE"],        //强行升级
                ["cbMustUpdateClient", "BYTE"],       //强行升级
                ["cbAdviceUpdateClient", "BYTE"],        //建议升级
                ["dwCurrentPlazaVersion", "DWORD"],       //当前版本
                ["dwCurrentFrameVersion", "DWORD"],        //当前版本
                ["dwCurrentClientVersion", "DWORD"],       //当前版本
            ]
        },
        2: {
            //列表配置
            100: [
                ["cbColumnCount", "BYTE"],      //列表数目
                ["ColumnItem", "STRUCT[]", [
                    ["cbColumnWidth", "BYTE"],        //列表宽度
                    ["cbDataDescribe", "BYTE"],        //字段类型
                    ["szColumnName", "TCHAR", 16],       //列表名字
                ], 16],        //列表描述
            ],
            //房间配置
            101: [
                ["wTableCount", "WORD"],        //桌子数目
                ["wChairCount", "WORD"],        //椅子数目
                ["wServerType", "WORD"],        //房间类型
                ["dwServerRule", "DWORD"],        //房间规则
            ],
            //完成配置
            103: [

            ],
            //玩家权限
            104: [
                ["dwUserRight", "DWORD"],        //玩家权限
            ],
        },

        3: {
            //用户规则
            1: [
                ["cbRuleMask", "BYTE"],        //规则掩码
                ["wMinWinRate", "WORD"],        //最低胜率
                ["wMaxFleeRate", "WORD"],        //最高逃率
                ["lMaxGameScore", "LONG"],        //最高分数
                ["lMinGameScore", "LONG"],        //最低分数
                ["szPassword", "TCHAR", 33],        //桌子密码
            ],
            //旁观请求
            2: [

            ],
            //请求坐下
            3: [
                ["wTableID", "WORD"],        //桌子位置
                ["wChairID", "WORD"],        //椅子位置
                ["szPassword", "TCHAR", 33],        //桌子密码
            ],
            //拒绝黑名单坐下
            7: [
                ["wTableID", "WORD"],        //桌子位置
                ["wChairID", "WORD"],        //椅子位置
                ["dwUserID", "TCHAR", 33],        //用户ID
                ["dwRepulseUserID", "DWORD"]        //用户ID
            ],
            //提出用户
            8: [
                ["dwTargetUserID", "DWORD"],        //用户标识
            ],
            //用户信息
            100: [
                ["tagMobileUserInfoHead", "SPSTRUCT", [
                    ["dwGameID", "DWORD"],        //游戏 I D
                    ["dwUserID", "DWORD"],        //用户 I D
                    ["dwGroupID", "DWORD"],        //社团 I D
                    ["wFaceID", "WORD"],        //头像索引
                    ["dwCustomID", "DWORD"],        ////自定标识
                    ["bIsAndroid", "BOOL"],        ////机器标识
                    ["cbGender", "BYTE"],        ////用户性别
                    ["cbMemberOrder", "BYTE"],        ////会员等级
                    ["cbTrader", "BYTE"],        ////管理等级
                    ["wTableID", "WORD"],        ////桌子索引
                    ["wChairID", "WORD"],        ////椅子索引
                    ["cbUserStatus", "BYTE"],        ////用户状态
                    ["lScore", "DLONG"],        ////用户分数  用户的money
                    ["lGrade", "DLONG"],        ////用户成绩
                    ["lInsure", "DLONG"],        ////用户银行
                    ["lIngot", "DLONG"],        ////用户元宝
                    ["dBeans", "DOUBLE"],        ////用户游戏豆
                    ["dwWinCount", "DWORD"],        //胜利盘数
                    ["dwLostCount", "DWORD"],        //失败盘数
                    ["dwDrawCount", "DWORD"],        //和局盘数
                    ["dwFleeCount", "DWORD"],        //逃跑盘数
                    ["dwExperience", "DWORD"],        //用户经验
                    ["lLoveLiness", "DWORD"],        //用户魅力
                    ["lIntegralCount", "DLONG"],        //积分总数
                    ["dwAgentID", "DWORD"],        //代理 I D
                ]]
            ],
            //用户分数
            101: [
                ["dwUserID", "DWORD"],        //桌子位置
                ["UserScore", "STRUCT", [
                    ["lScore", "DLONG"],        //用户分数
                    ["lGrade", "DLONG"],        //用户成绩
                    ["lInsure", "DLONG"],        //用户银行
                    ["lIngot", "DLONG"],        //用户银行
                    ["dBeans", "BYTE"],        //用户银行
                    ["dwWinCount", "DWORD"],        //胜利盘数
                    ["dwLostCount", "DWORD"],        //失败盘数
                    ["dwDrawCount", "DWORD"],        //和局盘数
                    ["dwFleeCount", "DWORD"],        //逃跑盘数
                    ["dwUserMedal", "DLONG"],        //用户奖牌
                    ["dwExperience", "DWORD"],        //用户经验
                    ["lLoveLiness", "DLONG"]        //用户魅力
                ]],        //积分信息
            ],

            //用户状态
            102: [
                ["dwUserID", "DWORD"],        //用户标识
                ["tableId", "WORD"],
                ["wChairID", "WORD"],
                ["cbUserStatus", "BYTE"]
            ],
            //请求失败
            103: [
                ["lErrorCode", "LONG"],        //错误码
                ["wServerType", "WORD"],        //错误码
                ["szDescribeString", "TCHARS", 256]        //描述信息
            ],
            //踢出用户
            104: [
                ["dwTargetUserID", "DWORD"],        //目标用户
            ],
        },

        4: {
            //桌子信息
            100: [
                ["wTableCount", "WORD"],        //桌子数量
                ["TableStatusArray", "STRUCT[]", [
                    ["cbTableLock", "BYTE"],     //锁定标志
                    ["cbPlayStatus", "BYTE"],       //游戏标志
                ], 3] //桌子状态
            ],
            //桌子状态
            101: [
                ["wTableID", "WORD"],        //桌子数量
                ["TableStatus", "BYTE"], //桌子状态
                ["cbPlayStatus", "BYTE"], //桌子状态

            ]

        },
        5: {
            //银行资料返回
            100: [
                ["cbActivityGame", "BYTE"],        //游戏动作
                ["wRevenueTake", "WORD"],        //税收比列
                ["wRevenueTransfer", "WORD"],        //税收比列
                ["wServerID", "WORD"],        //房间标识
                ["lUserScore", "SCORE"],        //用户金币
                ["lUserInsure", "SCORE"],        //银行金币
                ["lTransferPrerequisite", "SCORE"],        //转账条件
            ],
            //银行操作成功
            101: [
                ["cbActivityGame", "BYTE"],        //游戏动作
                ["lUserScore", "SCORE"],        //身上金币
                ["lUserInsure", "SCORE"],        //银行金币
                ["szDescribeString", "CHINESE", 128],        //描述消息
            ],
            //银行操作失败
            102: [
                ["cbActivityGame", "BYTE"],        //游戏动作
                ["lErrorCode", "LONG"],        //错误代码
                ["szDescribeString", "CHINESE", 128],        //描述消息
            ],
        },
        // //管理员命令
        // 6:{
        //     //警告消息
        //     1:[
        //         ["wChatLength", "WORD"],        //信息长度
        //         ["dwTargetUserID", "DWORD"],        //目标用户
        //         ["szWarningMessage", "CHINESE",128],        //警告消息
        //     ],
        //     //接受消息
        //     2:[
        //         ["cbGame", "WORD"],        //游戏标识
        //         ["cbRoom", "DWORD"],        //房间标识
        //         ["cbAllRoom", "CHINESE",128],        //所有房间
        //         ["wChatLength", "DWORD"],              //消息长度
        //         ["szSystemMessage", "CHINESE",128],        //系统消息
        //     ],
        // },

        100: {
            //游戏状态
            100: [
                ["cbGameStatus", "BYTE"],        //游戏状态
                ["cbAllowLookon", "BYTE"],        //旁观标志
            ],
            101: [

            ],
            //用户匹配状态
            103: [],
            //可进行游戏状态
            104: [],
            //系统消息
            200: [
                ["wType", "WORD"],        //消息类型
                ["wLength", "WORD"],        //消息长度
                ["szString", "TCHARS", 1024],        //内容
            ],
            300: [
                ["szSerialNumber", "TCHARS", 66] //牌局编号
            ]
        }
        ,
        200: {
            //游戏空闲
            99: [
                ["cbTimeLeave", "BYTE"],//剩余时间
                ["bankerPos", "DLONG"],//列表人数          
                ["bankerMoney", "DLONG"],//庄家金币                
            ],
            //游戏开始
            100: [
                ["bankerPos", "WORD"],        //庄家位置
                ["bankerMoney", "DLONG"],        //庄家金币
                ["myMoney", "DLONG"],
                ["cbTimeLeave", "BYTE"],
                ["fapai", "BYTE"]
            ],
            //用户下注
            101: [

                ["wChairID", "WORD"],    //位置
                ["cbJettonArea", "BYTE"],     //筹码区域  
                ["lJettonScore", "DLONG"],    //加注数目
                ["bIsAndroid", "BOOL"],       //是否机器人
                ["bAndroid", "BOOL"],       //下注时间戳
            ],
            // 游戏结束
            102: [
                ["cbTimeLeave", "BYTE"],       //剩余时间
                ["cbTableCardArray", "BYTE[][]", 5, 5],       //桌面扑克
                ["cbLeftCardCount", "BYTE"],    //扑克类型
                ["bcFirstCard", "BYTE"],       //牛排索引
                ["lBankerScore", "DLONG"],       //庄家成绩
                ["nBankerTime", "DWORD"], //坐庄次数
                ["lBankerTotallScore", "DLONG"],       //庄家现分
                ["lUserScore", "DLONG"],       //玩家成绩
                ["playerTotallScore", "DLONG"],      //返回积分
                ["lRevenue", "DLONG"],      //游戏税收
                ["wSeatPlays", "WORD[]", 8],
                ["lSeatScore", "DLONG[]", 8],
                ["bOxCard", "BYTE[]", 5],    //扑克类型
                ["cbCardIndex", "BYTE[][]", 5, 2],       //牛排索引
                ["lUserWinAreaScore", "DLONG[]", 5],       //玩家各区域成绩
                ["lBankerAreaWinScore", "DLONG[]", 5],       //庄家各区域成绩
                ["szNickName", "TCHAR", 32],       //庄家名字
                ["sTenWinnerInfo", "STRUCT[]", [
                    ["szWinnerUserName", "TCHAR", 32],       //下注区域
                    ["lWinScore", "DLONG"],    //加注数
                ], 3],



            ],
            //申请庄家
            103: [
                ["wApplyUser", "WORD"], //申请玩家
            ],
            // 切换庄家
            104: [
                ["wBankerUser", "WORD"],    //当庄玩家
                ["lBankerScore", "DLONG"],    //庄家名称
                ["typeCurrentBanker", "WORD"],     //庄家金币
            ],
            //游戏记录
            106: [
                ["struGameRecord", "STRUCT[]", [
                    ["bWinShunMen", "BYTE"],     //顺门胜利
                    ["bWinDuiMen", "BYTE"],     //对门胜利
                    ["bWinDaoMen", "BYTE"],    //倒门胜利
                    ["bWinHuang", "BYTE"],    //倒门胜利
                ], 16], //游戏空闲
            ],

            //用户下注失败
            107: [
                ["wPlaceUser", "WORD"],     //下注玩家
                ["lJettonArea", "BYTE"],     //下注区域
                ["lPlaceScore", "DLONG"],    //当前下注
            ],

            //取消申请  9   3
            108: [
                ["szCancelUser", "WORD"], //取消玩家
            ],

            200: [
                ["structUserList", "STRUCT[]", [
                    ["wFaceID", "WORD"], //头像标识
                    ["szCityName", "TCHARS", 16], //头像标识
                    ["lTakeMinScore", "DLONG"], //头像标识
                ], 200], //游戏空闲
            ],

        }
        ,
        11: {

            //游戏状态
            99: [
                ["cbTimeLeave", "WORD"],   //剩余时间
                ["wBankerUser", "WORD"],      //当前庄家
                ["szBankerUserName", "CHINESE", 32],   //庄家名称
                ["cbBankerTime", "WORD"],       //庄家局数
                ["wEnableSysBanker", "WORD"],      //系统坐庄
                ["wApplyBankerCnt", "WORD"],      //申请人数
                ["lUserMaxScore", "LONGLONG"],       //玩家金币
                ["lBankerScore", "LONGLONG"],       //庄家分数
                ["lApplyBankerCondition", "LONGLONG"],     //申请条件
                ["lAreaLimitScore", "LONGLONG"],      //区域限制
            ],
            //下注状态
            100: [
                ["wEnableSysBanker", "WORD"],      //系统坐庄
                ["cbTimeLeave", "WORD"],   //剩余时间
                ["cbGameStatus", "BYTE"],      //游戏状态
                ["wBankerUser", "WORD"],      //当前庄家
                ["szBankerUserName", "CHINESE", 32],   //庄家名称
                ["cbBankerTime", "WORD"],       //庄家局数                     
                ["wApplyBankerCnt", "WORD"],      //申请人数
                ["lAllJettonScore", "LONGLONG[]", 5],      //全体总注
                ["lUserJettonScore", "LONGLONG[]", 5],      //个人总注
                ["lUserMaxScore", "LONGLONG"],       //最大下注
                ["lApplyBankerCondition", "LONGLONG"],     //申请条件
                ["lAreaLimitScore", "LONGLONG"],      //区域限制
                ["lBankerScore", "LONGLONG"],      //庄家分数
            ],
            //摊牌状态
            101: [

                ["wBankerUser", "WORD"],      //当前庄家
                ["szBankerUserName", "CHINESE", 32],   //庄家名称
                ["cbBankerTime", "WORD"],       //庄家局数
                ["wEnableSysBanker", "WORD"],       //系统坐庄
                ["cbTimeLeave", "WORD"],   //剩余时间  
                ["cbGameStatus", "BYTE"],      //游戏状态                  
                ["wApplyBankerCnt", "WORD"],      //申请人数
                ["lAllJettonScore", "LONGLONG", 5],      //全体总注
                ["lUserJettonScore", "LONGLONG", 5],      //个人总注
                ["lUserMaxScore", "LONGLONG"],       //最大下注
                ["lBankerScore", "LONGLONG"],      //庄家分数
                ["lApplyBankerCondition", "LONGLONG"],     //申请条件
                ["lAreaLimitScore", "LONGLONG"],      //区域限制

            ],
            //游戏开始
            102: [
                ["wBankerUser", "WORD"],    //庄家位置
                ["cbTimeLeave", "BYTE"],       //剩余时间
                ["bContiueCard", "BYTE"],       //继续发牌
                ["nChipRobotCount", "INT"],    //人数上限（下注机器人）
                ["lBankerScore", "LONGLONG"],       //庄家金币
                ["lUserMaxScore", "LONGLONG"],      //我的金币
            ],
            //用户下注
            105: [

                ["wChairID", "WORD"],    //庄家位置
                ["cbJettonArea", "BYTE"],       //剩余时间
                ["bIsAndroid", "BYTE"],       //是否机器人
                ["lJettonScore", "LONGLONG"],    //加注数目
                ["lJettonTime", "LONGLONG"],       //下注时间戳
                ["sAreaJetton", "STRUCT[]", [
                    ["cbArea", "BYTE"],       //下注区域
                    ["lJettonScore", "DLONG"],    //加注数
                ], 4],
            ],
            //游戏结束
            104: [
                ["cbTimeLeave", "BYTE"],       //剩余时间
                ["cbTableCardArray", "BYTE[][]", 5, 5],       //桌面扑克
                ["cbLeftCardCount", "BYTE"],    //扑克类型
                ["bcFirstCard", "BYTE"],       //牛排索引
                ["lBankerScore", "DLONG"],       //庄家成绩
                ["lBankerTotallScore", "DLONG"],       //庄家现分
                ["nBankerTime", "BYTE"],       //剩余时间
                ["lUserScore", "DLONG"],      //玩家成绩
                ["lUserScore2", "DLONG"],      //返回积分
                ["lRevenue", "DLONG"],      //游戏税收
                ["sTenWinnerInfo", "STRUCT[]", [
                    ["szWinnerUserName", "TCHAR", 32],  //庄家名称
                    ["lWinScore", "DLONG"],   //庄家成绩
                ], 3],      //赢家信息
            ],
            //申请庄家
            103: [
                ["wApplyUser", "WORD"], //申请玩家
            ],
            //切换庄家
            110: [
                ["wBankerUser", "WORD"],    //当庄玩家
                ["lBankerScore", "DLONG"],    //庄家名称
                ["typeCurrentBanker", "WORD"],     //庄家金币
            ],
            //更新积分
            107: [
                ["wChairID", "WORD"],    //椅子号
                ["wCurrentBankerChairID", "WORD"],    //当前庄家
                ["cbBankerTime", "BYTE"],    //庄家局数
                ["lCurrentBankerScore", "LONGLONG"],     //庄家分数
                ["lScore", "WORD"],    //庄家积分
            ],
            //游戏记录
            106: [
                ["struGameRecord", "STRUCT[]", [
                    ["bWinShunMen", "BYTE"],     //顺门胜利
                    ["bWinDuiMen", "BYTE"],     //对门胜利
                    ["bWinDaoMen", "BYTE"],    //倒门胜利
                    ["bWinHuang", "BYTE"],    //倒门胜利
                ], 16], //游戏空闲
            ],
            //用户下注失败
            109: [
                ["wPlaceUser", "WORD"],     //下注玩家
                ["lJettonArea", "BYTE"],     //下注区域
                ["lPlaceScore", "LONGLONG"],    //当前下注
            ],

            //发送账号
            111: [
                ["m_UserID", "DWORD[]", 100], //玩家ID
                ["m_UserCount", "DWORD"], //玩家数量
            ],
            //管理员命令
            112: [

            ],
            //查询账号
            113: [
                ["dwUserAccount", "TCHAR", 32], //取消玩家
            ],
            //游戏记录
            114: [
                ["struGameRecord", "STRUCT[]", [
                    ["bWinShunMen", "BYTE"],     //顺门胜利
                    ["bWinDuiMen", "BYTE"],     //对门胜利
                    ["bWinDaoMen", "BYTE"],    //倒门胜利
                    ["bWinHuang", "BYTE"],    //倒门胜利
                ], 16], //游戏空闲
            ],
            //机器人下注
            115: [
                ["cbJettonArea", "BYTE"], //筹码区域
                ["lJettonScore", "LONGLONG"], //加注数量
            ],
            //真人下注
            116: [
                ["dwGameID", "DWORD"], //用户ID
                ["wBetItem", "WORD"], //下注项目
                ["wBetAmount", "LONGLONG"], //下注数
                ["lBetItemAmout", "LONGLONG[]", 4], //各项目下注总数 下标0~3 对应1~4
                ["lBetItemTotal", "LONGLONG[]", 4], //各项目下注总数 下标0~3 对应1~4
                ["szNickName", "TCHAR", 32], //用户昵称
            ],
            //庄家申请列表
            120: [
                ["cbApplyNum", "BYTE"], //申请庄家人数
                ["sApplyBanker", "STRUCT[]", [
                    ["cbApplyNum", "LONGLONG"], //用户金币
                    ["szNickName", "CHINESE", 32], //用户昵称
                ], 5], //申请庄家信息
            ],
            //庄家信息
            121: [
                ["cbContinue", "BYTE"], //连续坐庄次数
                ["cbFaceID", "BYTE"], //头像ID
                ["wChairID", "WORD"], //椅子ID
                ["szNickName", "CHINESE", 32], //庄家名称
            ],
            //机器人抢庄
            122: [

            ],
            //押注已满，提前结束
            123: [

            ],

            //用户信息返回
            504: [
                ["wUserCount", "BYTE"],   //消息数量
                ["sUserInfo", "STRUCT[]",
                    [
                        ["dwUserID", "DWORD"], //用户ID
                        ["dwGameID", "DWORD"], //游戏ID
                        ["cbGender", "BYTE"], //性别
                        ["cbFaceID", "BYTE"], //头像
                        ["wChairID", "WORD"], //椅子号
                        ["lScore", "LONGLONG"], //用户金币
                        ["szNickName", "CHINESE", 32],
                    ] //用户昵称
                    , 0]],
            //验证银行密码返回
            408: [
                ["cbResult", "BYTE"], // 0:失敗 1：成功
            ],
            502: [
                ["wUserCount", "BYTE"], //用户数量
                ["sGameScore", "STRUCT[]", [
                    ["dwGameID", "DWORD"], //用户ID
                    ["cbWinnerUser", "BYTE"], //陪玩用户标志 1-是 0-否
                    ["lUserScore", "SCORE"], //用户携带金币
                    ["lTotalScore", "SCORE"], //用户总输赢金币
                    ["lGameScore", "SCORE"], //用户游戏输赢金币 下标0-奔驰宝马 1-百人牛牛 2-百家乐 3-李逵劈鱼
                    ["szNickName", "CHINESE", 32], //用户昵称
                ], 0], //用户信息
            ],
            //银行资料
            600: [
                ["cbActivityGame", "BYTE"], //游戏动作
                ["wRevenueTake", "WORD"], //收税比列
                ["wRevenueTransfer", "WORD"], //收税比列
                ["wServerID", "WORD"], //房间标识
                ["lUserScore", "SCORE"], //用户金币
                ["lUserInsure", "SCORE"], //银行金币
                ["lTransferPrerequisite", "SCORE"], //转账条件
            ],
            //银行操作成功
            601: [
                ["cbActivityGame", "BYTE"], //游戏动作
                ["lUserScore", "SCORE"], //携带金币
                ["lUserInsure", "SCORE"], //银行金币
                ["szDescribeString", "CHINESE", 128], //描述
            ],
            //银行操作失败
            602: [
                ["cbActivityGame", "BYTE"], //游戏动作
                ["lErrorCode", "LONG"], //错误代码
                ["szDescribeString", "CHINESE", 128], //描述
            ],



        },
        1000: {
            1: [
                ["wType", "WORD"],  //消息类型 1聊天消息 2弹出消息 4全局消息 8提示消息 16滚动消息
                ["wLength", "WORD"],  //消息长度
                ["szString", "TCHAR", 16],  //消息内容
            ],
        }
    }

    //手机登陆
    export let CMD_GP_LogonMobile = {
        wMainCmdID: 1,
        wSubCmdID: 1,
        nLenght: 216,
        data: [
            ["dwPlazaVersion", "DWORD"],                //dwPlazaVersion广场版本
            ["dwFrameVersion", "DWORD"],       //dwFrameVersion
            ["dwProcessVersion", "DWORD"], //dwProcessVersion
            ["dwUserID", "DWORD"],        //玩家id
            ["szPassword", "TCHAR", 33],        //动态密码
            ["szServerPasswd", "TCHAR", 33],        //szServerPasswd
            ["szMachineID", "TCHAR", 33],        //szMachineID
            ["wGameID", "WORD"],                //游戏id
        ]
    }

}
